package com.binance.mbxgateway.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.binance.master.configs.FeignConfig;
import com.binance.master.constant.Constant;
import com.binance.master.models.APIRequest;
import com.binance.master.models.APIResponse;
import com.binance.mbxgateway.vo.request.klines.GetKlineRequest;
import com.binance.mbxgateway.vo.response.klines.GetKlinesResponse;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api
@FeignClient(name = Constant.MBX_GATEWAY_SERVICE, configuration = FeignConfig.class)
public interface IKlineApi {

    @ApiOperation("获取klines")
    @PostMapping(value = "/public/klines")
    public APIResponse<GetKlinesResponse> getKlines(@RequestBody APIRequest<GetKlineRequest> request) throws Exception;
}
